package com.gx.smart.building.ui.spare

import android.content.Intent
import android.view.ViewGroup
import com.gx.smart.base.BaseMVVMActivityV3
import com.gx.smart.building.R
import com.gx.smart.building.databinding.ActivityResultBinding
import com.gx.smart.building.ui.spare.viewmodel.SparePartViewModel

class ResultActivity : BaseMVVMActivityV3<SparePartViewModel>() {
    private lateinit var viewBinding: ActivityResultBinding

    override fun onBindViewModel(): Class<SparePartViewModel> = SparePartViewModel::class.java

    override fun onBindLayout(): Int = R.layout.activity_result

    override fun getToolbarTitle(): String = "耗材申请"

    override fun initContentView(root: ViewGroup) {
        viewBinding = ActivityResultBinding.inflate(layoutInflater, root, true)
        viewBinding.list.setOnClickListener {
            startActivity(Intent(this, SelectAreaActivity::class.java))
            finish()
        }
    }
}